import request from './request.js'

export const register = (params) => {
  return request('/blade-auth/oauth/register', params, 'post');
};
// 强制修改注册时用户信息
export const updPhoneAndPass = (params) => {
  return request('/blade-auth/oauth/updPhoneAndPass', params, 'post');
};
// 登录
export const oauthwx = (params) => {
  return request('/blade-auth/oauth/wx', params, 'post');
};
// 门诊 信息
export const communitycliniclist = (params) => {
  return request('/communityclinic/page', params, 'get');
};
// 健康科普
export const popularsciencelist = (params) => {
  return request('/popularscience/list', params, 'get');
};
// 诈骗公示
export const fraudpublicitylist = (params) => {
  return request('/fraudpublicity/list', params, 'get');
};
export const healtheducationlist = (params) => {
  return request('/healthEducation/healtheducation/list', params, 'get');
};
// 添加成员
export const attendFamilyMember = (params) => {
  return request('/familyMember/attendFamilyMember', params, 'post');
};
// 获取家庭成员
export const getMemberByUser = (params) => {
  return request('/familyMember/getMemberByUser', params, 'get');
};
// 预约申请
export const sensingReservesubmit = (params) => {
  return request('/sensingReserve/save', params, 'post');
};
// 医生列表
export const doctorInfolist = (params) => {
  return request('/doctorInfo/list', params, 'get');
};
// 获取字典
export const dictionary = (params) => {
  return request('/blade-system/dict/dictionary', params, 'get');
};
// 医生详情
export const doctorInfodetail = (params) => {
  return request('/doctorInfo/detail', params, 'get');
};
// 查询用户绑定关系
export const binddoctorpage = (params) => {
  return request('/binddoctor/page', params, 'get');
};
// 家庭医生签约
export const binddoctorsave = (params) => {
  return request('/binddoctor/submit', params, 'post');
};
// 评价列表
export const scoreevaluationpage = (params) => {
  return request('/scoreevaluation/page', params, 'get');
};
// 新增评价
export const scoreevaluationsubmit = (params) => {
  return request('/scoreevaluation/submit', params, 'post');
};
// 问卷列表
export const questionnairelist = (params) => {
  return request('/convenient/questionnaire/list', params, 'get');
};
//
export const questionnairepaperanswer = (params) => {
  return request('/convenient/questionnairepaperanswer/list', params, 'get');
};
// 居家护理新增
export const homecaresave = (params) => {
  return request('/homecare/save', params, 'post');
};
// 病例新增
export const medicalCasesubmit = (params) => {
  return request('/medicalCase/submit', params, 'post');
};
// 病例列表
export const medicalCaselistAll = (params) => {
  return request('/medicalCase/listAll', params, 'get');
};
// 问卷详情
export const questionnairepaperanswerdetail = (params) => {
  return request('/convenient/questionnairepaperanswer/detail?questionnaireId=' + params.questionnaireId + '&userId=' + params.userId, params, 'post');
};
// 提交问卷
export const convenientsubmit = (params) => {
  return request('/convenient/questionnairepaperanswer/q/submit', params, 'post');
};
// 消息分类
export const messagenoticecategory = (params) => {
  return request('/messagenotice/category', params, 'get');
};
// 消息列表
export const messagenoticepage = (params) => {
  return request('/messagenotice/page', params, 'get');
};
// 消息读取
export const pageviewview = (params) => {
  return request('/pageview/view', params, 'post');
};
// 预约记录
export const sensingReservelist = (params) => {
  return request('/sensingReserve/list', params, 'get');
};
// 预约详情
export const sensingReservedetail = (params) => {
  return request('/sensingReserve/detail', params, 'get');
};
//工单记录
export const homecarelist = (params) => {
  return request('/homecare/page', params, 'get');
};
export const homecaredetail = (params) => {
  return request('/homecare/detail', params, 'get');
};
// 诈骗详情
export const fraudpublicitydetail = (params) => {
  return request('/fraudpublicity/detail', params, 'get');
};
export const popularsciencedetail = (params) => {
  return request('/popularscience/detail', params, 'get');
};
export const healtheducationdetail = (params) => {
  return request('/healthEducation/healtheducation/detail', params, 'get');
};
export const getOrderDetail = (params) => {
  return request('/foodrecipes/detail', params, 'get');
};
export const changeOrder = (params) => {
  return request('/homecare/update', params, 'post');
};
export const changeTab = (params) => {
  return request('/userTab/save', params, 'post');
};

export const adminApph6login = (params) => {
  return request('/login', params, 'post');
};

export const complaintUpdate = (params) => {
  return request('/validate/code/get', params, 'get');
};